package com.ocom.common.request.company;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class GetPushByLineRequest implements Serializable {
    private String lineId;

    private String businessKey;

    @NotNull(message = "timestamp 毫秒时间长不能为空")
    Long timestamp;

    @NotBlank(message = "nonceStr 不能为空")
    @Length(min = 32, max = 32, message = "nonceStr长度必须为32")
    String nonceStr;  // 32

    @Length(min = 32, max = 32, message = "sign长度必须为32")
    @NotBlank(message = "sign 不能为空")
    String sign;   //实际是 comAppId
}
